import http from '@/request/http.js'


// 获取用户详细信息
export const getInfo = () => {
	return http.get('/getInfo')
}

//存储手机号
export const authPhone = (ivStr, encryptedData, code) => {
	const data = {
		ivStr,
		encryptedData,
		code
	}
	return http.post('/wxApp/authPhone', data)
}
//存储用户信息
export const auth = (nickName, avatarUrl, code) => {
	const data = {
		nickName, avatarUrl, code
	}
	return http.post('/public/wxApp/auth', data)
}